package com.yj;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.converter.scalars.ScalarsConverterFactory;

/**
 * Copyright 2017 (C) Yunjian-VC
 * Created on : 2017/12/5
 * Author     : Unbelievable9
 **/
public class RetrofitTestClient {

    private static final String localURL = "http://127.0.0.1:8080/";
    private static final String remoteURL = "http://tvvpjm.natappfree.cc/ymvs/";

    public static final Retrofit getLocalRetrofit() {
        return new Retrofit.Builder()
                .baseUrl(localURL)
                .addConverterFactory(ScalarsConverterFactory.create())
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    public static final Retrofit getRemoteRetrofit() {
        return new Retrofit.Builder()
                .baseUrl(localURL)
                .addConverterFactory(ScalarsConverterFactory.create())
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }
}
